<template>
<div>
    <h3>新闻列表页面</h3>
    <ul class="mui-table-view">
				<li class="mui-table-view-cell mui-media">
					<router-link to="/index/newsinfo/1">
						<img class="mui-media-object mui-pull-left" src="../../images/shuijiao.jpg">
						<div class="mui-media-body">
							<h3>幸福</h3>
							<p class='mui-ellipsis'>
                                <span>发表时间:2018-06-02</span>
                                <span>点击:0次</span>
                            </p>
						</div>
					</router-link>
				</li>
				<li class="mui-table-view-cell mui-media">
					<router-link to="/index/newsinfo/2">
						<img class="mui-media-object mui-pull-left" src="../../images/muwu.jpg">
						<div class="mui-media-body">
							<h3>木屋</h3>
							<p class='mui-ellipsis'>
                                <span>发表时间:2018-06-02</span>
                                <span>点击:0次</span>
                            </p>
						</div>
					</router-link>
				</li>
				<li class="mui-table-view-cell mui-media">
					<router-link to="/index/newsinfo/3">
						<img class="mui-media-object mui-pull-left" src="../../images/cbd.jpg">
						<div class="mui-media-body">
							<h3>CBD</h3>
							<p class='mui-ellipsis'>
                                <span>发表时间:2018-06-02</span>
                                <span>点击:0次</span>
                            </p>
						</div>
					</router-link>
				</li>
                <li class="mui-table-view-cell mui-media">
					<router-link to="/index/newsinfo/4">
						<img class="mui-media-object mui-pull-left" src="../../images/image2.png">
						<div class="mui-media-body">
							<h3>陈超</h3>
							<p class='mui-ellipsis'>
                                <span>发表时间:{{ date | dataFormat}} </span>
                                <span>点击:0次</span>
                            </p>
						</div>
					</router-link>
				</li>
			</ul>
</div>
</template>

<script>
import { Toast } from 'mint-ui'
export default {
    data(){
        return {
            date:Date.now()
        }
    },
    methods:{
        getNewsList(){
            Toast('无数据接口')
        }
    },
    created(){
        this.getNewsList()
    }
}
</script>

<style lang="less" scoped>
.mui-media-body h3{
    font-size: 14px;
}
.mui-ellipsis{
    font-size: 12px;
    display: flex;
    justify-content: space-between;
    span:last-child{
        float: right;
    }
}
</style>